package ru.tulupov.collectionsbenchmark.test;

import ru.tulupov.collectionsbenchmark.Test;
import ru.tulupov.collectionsbenchmark.model.Car;
import ru.tulupov.collectionsbenchmark.model.CarHeightComparator;
import ru.tulupov.collectionsbenchmark.model.CarWidthComparator;
import ru.tulupov.collectionsbenchmark.tester.ArrayListTester;
import ru.tulupov.collectionsbenchmark.tester.HashSetTester;
import ru.tulupov.collectionsbenchmark.tester.LinkedListTester;
import ru.tulupov.collectionsbenchmark.tester.ListTester;
import ru.tulupov.collectionsbenchmark.tester.Tester;
import ru.tulupov.collectionsbenchmark.tester.TreeSetTester;

@Test(name = "Sorting of lists")
public class SortTestSuite extends AbstractTest {
	private ListTester<Car> arrayListTester;
	private ListTester<Car> linkedListTester;

	public SortTestSuite() {
		this.arrayListTester = new ArrayListTester<Car>();
		this.linkedListTester = new LinkedListTester<Car>();
		 
		arrayListTester.init(cars);
		linkedListTester.init(cars);
	}

	@Test
	public void arrayListTest() {
		arrayListTester.sort();
	}

	@Test
	public void linkedListTest() {
		linkedListTester.sort();
	}

}
